<!DOCTYPE html>
<html lang="en"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.thymeleaf.org ">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>登录首页</title>
    <!--导入Bootstrap CSS-->
    <link th:href="@{/webjars/bootstrap/5.1.3/css/bootstrap.css}" rel="stylesheet">


</head>

<body>
    <h1 class="text-center">欢迎访问, <span th:text="${loginUser.email}"></span></h1>
    <h1 class="text-center"><button onclick="loginout()" class="btn btn-danger">退出登录</button></h1>
</body>
<script>
    function loginout(){
        location.href = '/loginout';
    }
</script>
<!--导入Bootstrap JavaScript-->
<script type="text/javascript" th:src="@{/webjars/bootstrap/5.1.3/js/bootstrap.bundle.js}"></script>
<script type="text/javascript" th:src="@{/webjars/jquery/3.3.1/jquery.js}"></script>
</html>